import { UPDATE_PROPS_SHOP_DECORATION } from '@/utils/Const';
import { useFactoryStore } from '@/hooks/useFactoryStore';


export let updatePropsShopDecoration = () => {
    let { mutation } = useFactoryStore({
        namespaced: 'shopDecoration',
        mutationsMethod: [UPDATE_PROPS_SHOP_DECORATION]
    });

    return (payload, ismobile = true) => {
        let row = {
            ismobile,
            defaultProps: payload
        };
        mutation[UPDATE_PROPS_SHOP_DECORATION](row);
    };
};